This is a simple class I created to implement dynamic access to C++ objects. It can be used as a base class with multiple inheritance. I use this class to lookup particular instances of classes by ID. This is a lot easier than creating and managing lists of objects. It also is more flexible and allows individual classes to make instances accessible via an object ID.
Please let me know if this is useful and also I would appreciate any suggestions or comments regarding this class and the general idea of dynamic access to objects in C++.